package com.itheima.health.controller;

import com.itheima.health.dto.CheckGroupDTO;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.entity.Result;
import com.itheima.health.service.CheckGroupService;
import com.itheima.health.service.ReportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.*;

//
@RestController
@Api(tags = "报表管理开发")
public class ReportController {

    // springmvc  消息转化器   @ResponseBody  默认 全字段序列化

    @Reference
    private ReportService reportService;

    @GetMapping("report/findLastyearMemberCountsByMonth")
    public Result  findLastyearMemberCountsByMonth( ){
        return  new Result(reportService.findLastyearMemberCountsByMonth());

    }
    @GetMapping("report/getSetmealProportion")
    public Result  getSetmealProportion( ){
        return  new Result(reportService.getSetmealProportion());

    }
}
